package com.sooth.system.user.table;

import com.dream.system.annotation.Column;
import com.dream.system.annotation.Id;
import com.dream.system.annotation.Table;
import lombok.Data;

import java.sql.Types;

/**
 * @Description: 用户信息表
 * @Author: Lion Li
 * @Date: 2023-09-04 09:42:38
 */
@Data
@Table("sys_user")
public class SysUser {


    /**
     * 用户ID
     */
    @Id
    @Column(value = "id", jdbcType = Types.BIGINT)
    private Long id;

    /**
     * 租户编号
     */
    @Column(value = "tenant_id", jdbcType = Types.VARCHAR)
    private String tenantId;

    /**
     * 部门ID
     */
    @Column(value = "dept_id", jdbcType = Types.BIGINT)
    private Long deptId;

    /**
     * 用户账号
     */
    @Column(value = "user_name", jdbcType = Types.VARCHAR)
    private String userName;

    /**
     * 用户昵称
     */
    @Column(value = "nick_name", jdbcType = Types.VARCHAR)
    private String nickName;

    /**
     * 用户类型（sys_user系统用户）
     */
    @Column(value = "user_type", jdbcType = Types.VARCHAR)
    private String userType;

    /**
     * 用户邮箱
     */
    @Column(value = "email", jdbcType = Types.VARCHAR)
    private String email;

    /**
     * 手机号码
     */
    @Column(value = "phone", jdbcType = Types.VARCHAR)
    private String phone;

    /**
     * 用户性别（0男 1女）
     */
    @Column(value = "sex", jdbcType = Types.INTEGER)
    private Integer sex;

    /**
     * 头像地址
     */
    @Column(value = "avatar", jdbcType = Types.BIGINT)
    private Long avatar;

    /**
     * 密码
     */
    @Column(value = "password", jdbcType = Types.VARCHAR)
    private String password;

    /**
     * 帐号状态（0正常 1停用）
     */
    @Column(value = "status", jdbcType = Types.INTEGER)
    private Integer status;

    /**
     * 删除标志（0代表存在 1代表删除）
     */
    @Column(value = "del_flag", jdbcType = Types.INTEGER)
    private Integer delFlag;

    /**
     * 最后登录IP
     */
    @Column(value = "login_ip", jdbcType = Types.VARCHAR)
    private String loginIp;

    /**
     * 最后登录时间
     */
    @Column(value = "login_date", jdbcType = Types.TIMESTAMP)
    private java.util.Date loginDate;

    /**
     * 创建部门
     */
    @Column(value = "create_dept", jdbcType = Types.BIGINT)
    private Long createDept;

    /**
     * 创建者
     */
    @Column(value = "create_by", jdbcType = Types.BIGINT)
    private Long createBy;

    /**
     * 创建时间
     */
    @Column(value = "create_time", jdbcType = Types.TIMESTAMP)
    private java.util.Date createTime;

    /**
     * 更新者
     */
    @Column(value = "update_by", jdbcType = Types.BIGINT)
    private Long updateBy;

    /**
     * 更新时间
     */
    @Column(value = "update_time", jdbcType = Types.TIMESTAMP)
    private java.util.Date updateTime;

    /**
     * 备注
     */
    @Column(value = "remark", jdbcType = Types.VARCHAR)
    private String remark;
}
